function ValidateHinhThucDauGia() {
	var tenhinhthucdaugia = document.getElementsByName("HinhThucDauGia_TenHinhThucDauGia").item(0);
	if (tenhinhthucdaugia.value == "") {
		alert("Please input TenHinhThucDauGia");
		return false;
	}
	return true;
}


function ValidateHopThu() {
	var tieude = document.getElementsByName("HopThu_TieuDe").item(0);
	if (tieude.value == "") {
		alert("Please input TieuDe");
		return false;
	}
	var noidung = document.getElementsByName("HopThu_NoiDung").item(0);
	if (noidung.value == "") {
		alert("Please input NoiDung");
		return false;
	}
	var hoten = document.getElementsByName("HopThu_HoTen").item(0);
	if (hoten.value == "") {
		alert("Please input HoTen");
		return false;
	}
	var emailnguoihoi = document.getElementsByName("HopThu_EmailNguoiHoi").item(0);
	if (emailnguoihoi.value == "") {
		alert("Please input EmailNguoiHoi");
		return false;
	}
	var ngayhoi = document.getElementsByName("HopThu_NgayHoi").item(0);
	if (ngayhoi.value == "") {
		alert("Please input NgayHoi");
		return false;
	}
	var daphanhoi = document.getElementsByName("HopThu_DaPhanHoi").item(0);
	if (daphanhoi.value == "") {
		alert("Please input DaPhanHoi");
		return false;
	}
	return true;
}

function ValidateDanhMucChinh() {
	var tendanhmucchinh = document.getElementsByName("DanhMucChinh_TenDanhMucChinh").item(0);
	if (tendanhmucchinh.value == "") {
		alert("Please input TenDanhMucChinh");
		return false;
	}
	return true;
}


function ValidateNguoiChoiDauGia() {
	var thoidiemdaugia = document.getElementsByName("NguoiChoiDauGia_ThoiDiemDauGia").item(0);
	if (thoidiemdaugia.value == "") {
		alert("Please input ThoiDiemDauGia");
		return false;
	}
	var giaduara = document.getElementsByName("NguoiChoiDauGia_GiaDuaRa").item(0);
	if (giaduara.value == "") {
		alert("Please input GiaDuaRa");
		return false;
	}
	return true;
}


function ValidateDanhMucCon() {
	var tendanhmuccon = document.getElementsByName("DanhMucCon_TenDanhMucCon").item(0);
	if (tendanhmuccon.value == "") {
		alert("Please input TenDanhMucCon");
		return false;
	}
	return true;
}


function ValidateNguoiDung() {
	var username = document.getElementsByName("NguoiDung_UserName").item(0);
	if (username.value == "") {
		alert("Please input UserName");
		return false;
	}
	var password = document.getElementsByName("NguoiDung_Password").item(0);
	if (password.value == "") {
		alert("Please input Password");
		return false;
	}
	var email = document.getElementsByName("NguoiDung_Email").item(0);
	if (email.value == "") {
		alert("Please input Email");
		return false;
	}
	return true;
}
